/* 运营订单表 */
export const Page = {
  /**
   * 表格
   * title 标题
   * value 内容字段
   * width 宽度
  */
  tableHeader: [
    {
      title: "订单状态",
      value: "order_status",
      width: "120px",
    },
    {
      title: "订单类型",
      value: "order_type",
      width: "120px",
    },
    {
      title: "年份",
      value: "YearDate",
      width: "120px",
    },
    {
      title: "下单月度",
      value: "Month",
      width: "120px",
    },
    {
      title: "订单号",
      value: "order_id",
      width: "130px",
    },
    {
      title: "下单账号",
      value: "pin",
      width: "150px",
    },
    {
      title: "收货人",
      value: "buyer_name",
      width: "120px",
    },
    {
      title: "电话",
      value: "phone",
      width: "140px",
    },
    {
      title: "收货信息",
      value: "address",
      width: "300px",
    },
    {
      title: "SKU",
      value: "sku_id",
      width: "140px",
    },
    {
      title: "产品",
      value: "sku_name",
      width: "200px",
    },
    {
      title: "订单台数",
      value: "sku_num",
      width: "100px",
    },
    {
      title: "链接",
      value: "link",
      width: "200px",
    },
    {
      title: "箱单",
      value: "print_PDF",
      width: "150px",
    },
    {
      title: "下单时间",
      value: "order_time",
      width: "180px",
    },
    {
      title: "支付金额",
      value: "pay_price",
      width: "150px",
    },
    {
      title: "采购价",
      value: "purchase_price",
      width: "140px",
    },
    {
      title: "结算金额",
      value: "settle_price",
      width: "140px",
    },
  ],
  /**
   * Dialog 表单弹窗
   * UpdataDialog 运营订单修改
   * CreateDialog 运营订单新增
  */
  Dialog: {
    /* 新运营订单表弹窗 */
    CreateDialog: {
      DialogTtile: "新增运营订单", // 弹窗标题
      DialogConfirmText: "确认新增", // 弹窗确认按钮文字
      DialogForm: {
        orderId: "",
        pin: "",
        customerName: "",
        phone: "",
        address: "",
        sku: "",
        wareName: "",
        wareNumInt: "",
        urlLink: "",
        pdfName: "",
        time: "",
        payPrice: "",
        purchase: "",
        settlePrice: "",
      },
      rules: {
        orderId: [
          { required: true, message: "请填写订单号", trigger: "blur" },
        ],
        wareNumInt: [
          { required: true, message: "请填写订单数量", trigger: "blur" },
        ],
        time: [
          { required: true, message: "请选择下单时间", trigger: "blur" },
        ],
        payPrice: [
          { required: true, message: "请填写支付金额", trigger: "blur" },
        ],
        purchase: [
          { required: true, message: "请填写采购金额", trigger: "blur" },
        ],
        settlePrice: [
          { required: true, message: "请填写结算金额", trigger: "blur" },
        ],
      },
      DialogFormType: [
        {
          name: "订单号",
          value: "orderId",
          type: "input",
          placeholder: "请填写订单号",
          required: true,
        },
        {
          name: "下单账号",
          value: "pin",
          type: "input",
          placeholder: "请填写下单账号",
        },
        {
          name: "收货人",
          value: "customerName",
          type: "input",
          placeholder: "请填写收货人",
        },
        {
          name: "手机号",
          value: "phone",
          type: "input",
          placeholder: "请填写手机号",
        },
        {
          name: "收货地址",
          value: "address",
          type: "input",
          placeholder: "请填写收货地址",
        },
        {
          name: "sku",
          value: "sku",
          type: "input",
          placeholder: "请填写sku",
        },
        {
          name: "产品名称",
          value: "wareName",
          type: "input",
          placeholder: "请填写产品名称",
        },
        {
          name: "订单数量",
          value: "wareNumInt",
          type: "input",
          placeholder: "请填写订单数量",
          required: true,
        },
        {
          name: "商品链接",
          value: "urlLink",
          type: "input",
          placeholder: "请填写商品链接",
        },
        {
          name: "是否需要箱单",
          value: "pdfName",
          type: "input",
          placeholder: "请填写箱单链接",
        },
        {
          name: "下单时间",
          value: "time",
          type: "time",
          placeholder: "请选择下单时间",
          required: true,
        },
        {
          name: "支付金额",
          value: "payPrice",
          type: "input",
          placeholder: "请填写支付金额",
          required: true,
        },
        {
          name: "采购金额",
          value: "purchase",
          type: "input",
          placeholder: "请填写采购金额",
          required: true,
        },
        {
          name: "结算金额",
          value: "settlePrice",
          type: "input",
          placeholder: "请填写结算金额",
          required: true,
        },
      ],
    },
    UpdataDialog: {
      DialogTtile: "修改运营订单表信息", // 弹窗标题
      DialogConfirmText: "确认修改", // 弹窗确认按钮文字
      DialogForm: {
        order_status: "",
        order_type: "",
      },
      DialogFormType: [
        {
          name: "订单状态",
          value: "order_status",
          type: "select",
          placeholder: "请选择订单状态",
          options: [
            {
              value: "1",
              label: "普通订单",
            },
            {
              value: "2",
              label: "退款订单",
            },
            {
              value: "3",
              label: "售后订单",
            },
          ],
        },
        {
          name: "订单类型",
          value: "order_type",
          type: "select",
          placeholder: "请选择订单类型",
          options: [
            {
              value: "1",
              label: "正式订单",
            },
            {
              value: "2",
              label: "运营补单",
            },
          ],
        },
      ],
    },
  },
};
